package com._520it.crm.mapper;

import com._520it.crm.domain.AuditInsurance;
import com._520it.crm.query.AuditInsuranceQueryObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
@Repository
public interface AuditInsuranceMapper {

    int insert(AuditInsurance record);


    Integer queryForCount(AuditInsuranceQueryObject qo);

    List<AuditInsurance> queryForList(AuditInsuranceQueryObject qo);

    //查询出所有审核表中的
    List<String> queryOrderBillNumber();


    void updateAuditTime(@Param("auditDate") Date date,@Param("empSn") String empSn,@Param("id") Long id);

    //删除和批改表中的关系
    void deleteInsuranceInfoChangeRelation(Long id);

    //根据待审核的id查询到billID
    Long queryBillIdByAuditInsuranceId(Long id);

    AuditInsurance auditHistoryData(Long id);
}